+function (t)
{
	"use strict";
	function e()
	{
		var t = document.createElement("bootstrap"), e = {
			WebkitTransition: "webkitTransitionEnd",
			MozTransition: "transitionend",
			OTransition: "oTransitionEnd otransitionend",
			transition: "transitionend"
		};
		for (var i in e)if (void 0 !== t.style[i])return {end: e[i]};
		return !1
	}

	t.fn.emulateTransitionEnd = function (e)
	{
		var i = !1, o = this;
		t(this).one("bsTransitionEnd", function ()
		{
			i = !0
		});
		var s = function ()
		{
			i || t(o).trigger(t.support.transition.end)
		};
		return setTimeout(s, e), this
	}, t(function ()
	{
		t.support.transition = e(), t.support.transition && (t.event.special.bsTransitionEnd = {
			bindType: t.support.transition.end,
			delegateType: t.support.transition.end,
			handle: function (e)
			{
				return t(e.target).is(this) ? e.handleObj.handler.apply(this, arguments) : void 0
			}
		})
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.affix"), n = "object" == typeof e && e;
			s || o.data("bs.affix", s = new i(this, n)), "string" == typeof e && s[e]()
		})
	}

	var i = function (e, o)
	{
		this.options = t.extend({}, i.DEFAULTS, o), this.$target = t(this.options.target).on("scroll.bs.affix.data-api", t.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", t.proxy(this.checkPositionWithEventLoop, this)), this.$element = t(e), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition()
	};
	i.VERSION = "3.3.5", i.RESET = "affix affix-top affix-bottom", i.DEFAULTS = {
		offset: 0,
		target: window
	}, i.prototype.getState = function (t, e, i, o)
	{
		var s = this.$target.scrollTop(), n = this.$element.offset(), a = this.$target.height();
		if (null != i && "top" == this.affixed)return i > s ? "top" : !1;
		if ("bottom" == this.affixed)return null != i ? s + this.unpin <= n.top ? !1 : "bottom" : t - o >= s + a ? !1 : "bottom";
		var r = null == this.affixed, l = r ? s : n.top, h = r ? a : e;
		return null != i && i >= s ? "top" : null != o && l + h >= t - o ? "bottom" : !1
	}, i.prototype.getPinnedOffset = function ()
	{
		if (this.pinnedOffset)return this.pinnedOffset;
		this.$element.removeClass(i.RESET).addClass("affix");
		var t = this.$target.scrollTop(), e = this.$element.offset();
		return this.pinnedOffset = e.top - t
	}, i.prototype.checkPositionWithEventLoop = function ()
	{
		setTimeout(t.proxy(this.checkPosition, this), 1)
	}, i.prototype.checkPosition = function ()
	{
		if (this.$element.is(":visible"))
		{
			var e = this.$element.height(), o = this.options.offset, s = o.top, n = o.bottom, a = Math.max(t(document).height(), t(document.body).height());
			"object" != typeof o && (n = s = o), "function" == typeof s && (s = o.top(this.$element)), "function" == typeof n && (n = o.bottom(this.$element));
			var r = this.getState(a, e, s, n);
			if (this.affixed != r)
			{
				null != this.unpin && this.$element.css("top", "");
				var l = "affix" + (r ? "-" + r : ""), h = t.Event(l + ".bs.affix");
				if (this.$element.trigger(h), h.isDefaultPrevented())return;
				this.affixed = r, this.unpin = "bottom" == r ? this.getPinnedOffset() : null, this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix", "affixed") + ".bs.affix")
			}
			"bottom" == r && this.$element.offset({top: a - e - n})
		}
	};
	var o = t.fn.affix;
	t.fn.affix = e, t.fn.affix.Constructor = i, t.fn.affix.noConflict = function ()
	{
		return t.fn.affix = o, this
	}, t(window).on("load", function ()
	{
		t('[data-spy="affix"]').each(function ()
		{
			var i = t(this), o = i.data();
			o.offset = o.offset || {}, null != o.offsetBottom && (o.offset.bottom = o.offsetBottom), null != o.offsetTop && (o.offset.top = o.offsetTop), e.call(i, o)
		})
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var i = t(this), s = i.data("bs.alert");
			s || i.data("bs.alert", s = new o(this)), "string" == typeof e && s[e].call(i)
		})
	}

	var i = '[data-dismiss="alert"]', o = function (e)
	{
		t(e).on("click", i, this.close)
	};
	o.VERSION = "3.3.5", o.TRANSITION_DURATION = 150, o.prototype.close = function (e)
	{
		function i()
		{
			a.detach().trigger("closed.bs.alert").remove()
		}

		var s = t(this), n = s.attr("data-target");
		n || (n = s.attr("href"), n = n && n.replace(/.*(?=#[^\s]*$)/, ""));
		var a = t(n);
		e && e.preventDefault(), a.length || (a = s.closest(".alert")), a.trigger(e = t.Event("close.bs.alert")), e.isDefaultPrevented() || (a.removeClass("in"), t.support.transition && a.hasClass("fade") ? a.one("bsTransitionEnd", i).emulateTransitionEnd(o.TRANSITION_DURATION) : i())
	};
	var s = t.fn.alert;
	t.fn.alert = e, t.fn.alert.Constructor = o, t.fn.alert.noConflict = function ()
	{
		return t.fn.alert = s, this
	}, t(document).on("click.bs.alert.data-api", i, o.prototype.close)
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.button"), n = "object" == typeof e && e;
			s || o.data("bs.button", s = new i(this, n)), "toggle" == e ? s.toggle() : e && s.setState(e)
		})
	}

	var i = function (e, o)
	{
		this.$element = t(e), this.options = t.extend({}, i.DEFAULTS, o), this.isLoading = !1
	};
	i.VERSION = "3.3.5", i.DEFAULTS = {loadingText: "loading..."}, i.prototype.setState = function (e)
	{
		var i = "disabled", o = this.$element, s = o.is("input") ? "val" : "html", n = o.data();
		e += "Text", null == n.resetText && o.data("resetText", o[s]()), setTimeout(t.proxy(function ()
		{
			o[s](null == n[e] ? this.options[e] : n[e]), "loadingText" == e ? (this.isLoading = !0, o.addClass(i).attr(i, i)) : this.isLoading && (this.isLoading = !1, o.removeClass(i).removeAttr(i))
		}, this), 0)
	}, i.prototype.toggle = function ()
	{
		var t = !0, e = this.$element.closest('[data-toggle="buttons"]');
		if (e.length)
		{
			var i = this.$element.find("input");
			"radio" == i.prop("type") ? (i.prop("checked") && (t = !1), e.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == i.prop("type") && (i.prop("checked") !== this.$element.hasClass("active") && (t = !1), this.$element.toggleClass("active")), i.prop("checked", this.$element.hasClass("active")), t && i.trigger("change")
		}
		else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")
	};
	var o = t.fn.button;
	t.fn.button = e, t.fn.button.Constructor = i, t.fn.button.noConflict = function ()
	{
		return t.fn.button = o, this
	}, t(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function (i)
	{
		var o = t(i.target);
		o.hasClass("btn") || (o = o.closest(".btn")), e.call(o, "toggle"), t(i.target).is('input[type="radio"]') || t(i.target).is('input[type="checkbox"]') || i.preventDefault()
	}).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function (e)
	{
		t(e.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(e.type))
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.carousel"), n = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e), a = "string" == typeof e ? e : n.slide;
			s || o.data("bs.carousel", s = new i(this, n)), "number" == typeof e ? s.to(e) : a ? s[a]() : n.interval && s.pause().cycle()
		})
	}

	var i = function (e, i)
	{
		this.$element = t(e), this.$indicators = this.$element.find(".carousel-indicators"), this.options = i, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", t.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart"in document.documentElement) && this.$element.on("mouseenter.bs.carousel", t.proxy(this.pause, this)).on("mouseleave.bs.carousel", t.proxy(this.cycle, this))
	};
	i.VERSION = "3.3.5", i.TRANSITION_DURATION = 600, i.DEFAULTS = {
		interval: 5e3,
		pause: "hover",
		wrap: !0,
		keyboard: !0
	}, i.prototype.keydown = function (t)
	{
		if (!/input|textarea/i.test(t.target.tagName))
		{
			switch (t.which)
			{
				case 37:
					this.prev();
					break;
				case 39:
					this.next();
					break;
				default:
					return
			}
			t.preventDefault()
		}
	}, i.prototype.cycle = function (e)
	{
		return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this
	}, i.prototype.getItemIndex = function (t)
	{
		return this.$items = t.parent().children(".item"), this.$items.index(t || this.$active)
	}, i.prototype.getItemForDirection = function (t, e)
	{
		var i = this.getItemIndex(e), o = "prev" == t && 0 === i || "next" == t && i == this.$items.length - 1;
		if (o && !this.options.wrap)return e;
		var s = "prev" == t ? -1 : 1, n = (i + s) % this.$items.length;
		return this.$items.eq(n)
	}, i.prototype.to = function (t)
	{
		var e = this, i = this.getItemIndex(this.$active = this.$element.find(".item.active"));
		return t > this.$items.length - 1 || 0 > t ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function ()
		{
			e.to(t)
		}) : i == t ? this.pause().cycle() : this.slide(t > i ? "next" : "prev", this.$items.eq(t))
	}, i.prototype.pause = function (e)
	{
		return e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
	}, i.prototype.next = function ()
	{
		return this.sliding ? void 0 : this.slide("next")
	}, i.prototype.prev = function ()
	{
		return this.sliding ? void 0 : this.slide("prev")
	}, i.prototype.slide = function (e, o)
	{
		var s = this.$element.find(".item.active"), n = o || this.getItemForDirection(e, s), a = this.interval, r = "next" == e ? "left" : "right", l = this;
		if (n.hasClass("active"))return this.sliding = !1;
		var h = n[0], d = t.Event("slide.bs.carousel", {relatedTarget: h, direction: r});
		if (this.$element.trigger(d), !d.isDefaultPrevented())
		{
			if (this.sliding = !0, a && this.pause(), this.$indicators.length)
			{
				this.$indicators.find(".active").removeClass("active");
				var c = t(this.$indicators.children()[this.getItemIndex(n)]);
				c && c.addClass("active")
			}
			var p = t.Event("slid.bs.carousel", {relatedTarget: h, direction: r});
			return t.support.transition && this.$element.hasClass("slide") ? (n.addClass(e), n[0].offsetWidth, s.addClass(r), n.addClass(r), s.one("bsTransitionEnd", function ()
			{
				n.removeClass([e, r].join(" ")).addClass("active"), s.removeClass(["active", r].join(" ")), l.sliding = !1, setTimeout(function ()
				{
					l.$element.trigger(p)
				}, 0)
			}).emulateTransitionEnd(i.TRANSITION_DURATION)) : (s.removeClass("active"), n.addClass("active"), this.sliding = !1, this.$element.trigger(p)), a && this.cycle(), this
		}
	};
	var o = t.fn.carousel;
	t.fn.carousel = e, t.fn.carousel.Constructor = i, t.fn.carousel.noConflict = function ()
	{
		return t.fn.carousel = o, this
	};
	var s = function (i)
	{
		var o, s = t(this), n = t(s.attr("data-target") || (o = s.attr("href")) && o.replace(/.*(?=#[^\s]+$)/, ""));
		if (n.hasClass("carousel"))
		{
			var a = t.extend({}, n.data(), s.data()), r = s.attr("data-slide-to");
			r && (a.interval = !1), e.call(n, a), r && n.data("bs.carousel").to(r), i.preventDefault()
		}
	};
	t(document).on("click.bs.carousel.data-api", "[data-slide]", s).on("click.bs.carousel.data-api", "[data-slide-to]", s), t(window).on("load", function ()
	{
		t('[data-ride="carousel"]').each(function ()
		{
			var i = t(this);
			e.call(i, i.data())
		})
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		var i, o = e.attr("data-target") || (i = e.attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "");
		return t(o)
	}

	function i(e)
	{
		return this.each(function ()
		{
			var i = t(this), s = i.data("bs.collapse"), n = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e);
			!s && n.toggle && /show|hide/.test(e) && (n.toggle = !1), s || i.data("bs.collapse", s = new o(this, n)), "string" == typeof e && s[e]()
		})
	}

	var o = function (e, i)
	{
		this.$element = t(e), this.options = t.extend({}, o.DEFAULTS, i), this.$trigger = t('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle()
	};
	o.VERSION = "3.3.5", o.TRANSITION_DURATION = 350, o.DEFAULTS = {toggle: !0}, o.prototype.dimension = function ()
	{
		var t = this.$element.hasClass("width");
		return t ? "width" : "height"
	}, o.prototype.show = function ()
	{
		if (!this.transitioning && !this.$element.hasClass("in"))
		{
			var e, s = this.$parent && this.$parent.children(".panel").children(".in, .collapsing");
			if (!(s && s.length && (e = s.data("bs.collapse"), e && e.transitioning)))
			{
				var n = t.Event("show.bs.collapse");
				if (this.$element.trigger(n), !n.isDefaultPrevented())
				{
					s && s.length && (i.call(s, "hide"), e || s.data("bs.collapse", null));
					var a = this.dimension();
					this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1;
					var r = function ()
					{
						this.$element.removeClass("collapsing").addClass("collapse in")[a](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
					};
					if (!t.support.transition)return r.call(this);
					var l = t.camelCase(["scroll", a].join("-"));
					this.$element.one("bsTransitionEnd", t.proxy(r, this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][l])
				}
			}
		}
	}, o.prototype.hide = function ()
	{
		if (!this.transitioning && this.$element.hasClass("in"))
		{
			var e = t.Event("hide.bs.collapse");
			if (this.$element.trigger(e), !e.isDefaultPrevented())
			{
				var i = this.dimension();
				this.$element[i](this.$element[i]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1;
				var s = function ()
				{
					this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")
				};
				return t.support.transition ? void this.$element[i](0).one("bsTransitionEnd", t.proxy(s, this)).emulateTransitionEnd(o.TRANSITION_DURATION) : s.call(this)
			}
		}
	}, o.prototype.toggle = function ()
	{
		this[this.$element.hasClass("in") ? "hide" : "show"]()
	}, o.prototype.getParent = function ()
	{
		return t(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(t.proxy(function (i, o)
		{
			var s = t(o);
			this.addAriaAndCollapsedClass(e(s), s)
		}, this)).end()
	}, o.prototype.addAriaAndCollapsedClass = function (t, e)
	{
		var i = t.hasClass("in");
		t.attr("aria-expanded", i), e.toggleClass("collapsed", !i).attr("aria-expanded", i)
	};
	var s = t.fn.collapse;
	t.fn.collapse = i, t.fn.collapse.Constructor = o, t.fn.collapse.noConflict = function ()
	{
		return t.fn.collapse = s, this
	}, t(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function (o)
	{
		var s = t(this);
		s.attr("data-target") || o.preventDefault();
		var n = e(s), a = n.data("bs.collapse"), r = a ? "toggle" : s.data();
		i.call(n, r)
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		var i = e.attr("data-target");
		i || (i = e.attr("href"), i = i && /#[A-Za-z]/.test(i) && i.replace(/.*(?=#[^\s]*$)/, ""));
		var o = i && t(i);
		return o && o.length ? o : e.parent()
	}

	function i(i)
	{
		i && 3 === i.which || (t(s).remove(), t(n).each(function ()
		{
			var o = t(this), s = e(o), n = {relatedTarget: this};
			s.hasClass("open") && (i && "click" == i.type && /input|textarea/i.test(i.target.tagName) && t.contains(s[0], i.target) || (s.trigger(i = t.Event("hide.bs.dropdown", n)), i.isDefaultPrevented() || (o.attr("aria-expanded", "false"), s.removeClass("open").trigger("hidden.bs.dropdown", n))))
		}))
	}

	function o(e)
	{
		return this.each(function ()
		{
			var i = t(this), o = i.data("bs.dropdown");
			o || i.data("bs.dropdown", o = new a(this)), "string" == typeof e && o[e].call(i)
		})
	}

	var s = ".dropdown-backdrop", n = '[data-toggle="dropdown"]', a = function (e)
	{
		t(e).on("click.bs.dropdown", this.toggle)
	};
	a.VERSION = "3.3.5", a.prototype.toggle = function (o)
	{
		var s = t(this);
		if (!s.is(".disabled, :disabled"))
		{
			var n = e(s), a = n.hasClass("open");
			if (i(), !a)
			{
				"ontouchstart"in document.documentElement && !n.closest(".navbar-nav").length && t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click", i);
				var r = {relatedTarget: this};
				if (n.trigger(o = t.Event("show.bs.dropdown", r)), o.isDefaultPrevented())return;
				s.trigger("focus").attr("aria-expanded", "true"), n.toggleClass("open").trigger("shown.bs.dropdown", r)
			}
			return !1
		}
	}, a.prototype.keydown = function (i)
	{
		if (/(38|40|27|32)/.test(i.which) && !/input|textarea/i.test(i.target.tagName))
		{
			var o = t(this);
			if (i.preventDefault(), i.stopPropagation(), !o.is(".disabled, :disabled"))
			{
				var s = e(o), a = s.hasClass("open");
				if (!a && 27 != i.which || a && 27 == i.which)return 27 == i.which && s.find(n).trigger("focus"), o.trigger("click");
				var r = " li:not(.disabled):visible a", l = s.find(".dropdown-menu" + r);
				if (l.length)
				{
					var h = l.index(i.target);
					38 == i.which && h > 0 && h--, 40 == i.which && h < l.length - 1 && h++, ~h || (h = 0), l.eq(h).trigger("focus")
				}
			}
		}
	};
	var r = t.fn.dropdown;
	t.fn.dropdown = o, t.fn.dropdown.Constructor = a, t.fn.dropdown.noConflict = function ()
	{
		return t.fn.dropdown = r, this
	}, t(document).on("click.bs.dropdown.data-api", i).on("click.bs.dropdown.data-api", ".dropdown form", function (t)
	{
		t.stopPropagation()
	}).on("click.bs.dropdown.data-api", n, a.prototype.toggle).on("keydown.bs.dropdown.data-api", n, a.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", a.prototype.keydown)
}(jQuery), +function (t)
{
	"use strict";
	function e(e, o)
	{
		return this.each(function ()
		{
			var s = t(this), n = s.data("bs.modal"), a = t.extend({}, i.DEFAULTS, s.data(), "object" == typeof e && e);
			n || s.data("bs.modal", n = new i(this, a)), "string" == typeof e ? n[e](o) : a.show && n.show(o)
		})
	}

	var i = function (e, i)
	{
		this.options = i, this.$body = t(document.body), this.$element = t(e), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, t.proxy(function ()
		{
			this.$element.trigger("loaded.bs.modal")
		}, this))
	};
	i.VERSION = "3.3.5", i.TRANSITION_DURATION = 300, i.BACKDROP_TRANSITION_DURATION = 150, i.DEFAULTS = {
		backdrop: !0,
		keyboard: !0,
		show: !0
	}, i.prototype.toggle = function (t)
	{
		return this.isShown ? this.hide() : this.show(t)
	}, i.prototype.show = function (e)
	{
		var o = this, s = t.Event("show.bs.modal", {relatedTarget: e});
		this.$element.trigger(s), this.isShown || s.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', t.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function ()
		{
			o.$element.one("mouseup.dismiss.bs.modal", function (e)
			{
				t(e.target).is(o.$element) && (o.ignoreBackdropClick = !0)
			})
		}), this.backdrop(function ()
		{
			var s = t.support.transition && o.$element.hasClass("fade");
			o.$element.parent().length || o.$element.appendTo(o.$body), o.$element.show().scrollTop(0), o.adjustDialog(), s && o.$element[0].offsetWidth, o.$element.addClass("in"), o.enforceFocus();
			var n = t.Event("shown.bs.modal", {relatedTarget: e});
			s ? o.$dialog.one("bsTransitionEnd", function ()
			{
				o.$element.trigger("focus").trigger(n)
			}).emulateTransitionEnd(i.TRANSITION_DURATION) : o.$element.trigger("focus").trigger(n)
		}))
	}, i.prototype.hide = function (e)
	{
		e && e.preventDefault(), e = t.Event("hide.bs.modal"), this.$element.trigger(e), this.isShown && !e.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), t(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), t.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", t.proxy(this.hideModal, this)).emulateTransitionEnd(i.TRANSITION_DURATION) : this.hideModal())
	}, i.prototype.enforceFocus = function ()
	{
		t(document).off("focusin.bs.modal").on("focusin.bs.modal", t.proxy(function (t)
		{
			this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus")
		}, this))
	}, i.prototype.escape = function ()
	{
		this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", t.proxy(function (t)
		{
			27 == t.which && this.hide()
		}, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal")
	}, i.prototype.resize = function ()
	{
		this.isShown ? t(window).on("resize.bs.modal", t.proxy(this.handleUpdate, this)) : t(window).off("resize.bs.modal")
	}, i.prototype.hideModal = function ()
	{
		var t = this;
		this.$element.hide(), this.backdrop(function ()
		{
			t.$body.removeClass("modal-open"), t.resetAdjustments(), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal")
		})
	}, i.prototype.removeBackdrop = function ()
	{
		this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
	}, i.prototype.backdrop = function (e)
	{
		var o = this, s = this.$element.hasClass("fade") ? "fade" : "";
		if (this.isShown && this.options.backdrop)
		{
			var n = t.support.transition && s;
			if (this.$backdrop = t(document.createElement("div")).addClass("modal-backdrop " + s).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", t.proxy(function (t)
					{
						return this.ignoreBackdropClick ? void(this.ignoreBackdropClick = !1) : void(t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()))
					}, this)), n && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !e)return;
			n ? this.$backdrop.one("bsTransitionEnd", e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : e()
		}
		else if (!this.isShown && this.$backdrop)
		{
			this.$backdrop.removeClass("in");
			var a = function ()
			{
				o.removeBackdrop(), e && e()
			};
			t.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", a).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : a()
		}
		else e && e()
	}, i.prototype.handleUpdate = function ()
	{
		this.adjustDialog()
	}, i.prototype.adjustDialog = function ()
	{
		var t = this.$element[0].scrollHeight > document.documentElement.clientHeight;
		this.$element.css({
			paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : "",
			paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : ""
		})
	}, i.prototype.resetAdjustments = function ()
	{
		this.$element.css({paddingLeft: "", paddingRight: ""})
	}, i.prototype.checkScrollbar = function ()
	{
		var t = window.innerWidth;
		if (!t)
		{
			var e = document.documentElement.getBoundingClientRect();
			t = e.right - Math.abs(e.left)
		}
		this.bodyIsOverflowing = document.body.clientWidth < t, this.scrollbarWidth = this.measureScrollbar()
	}, i.prototype.setScrollbar = function ()
	{
		var t = parseInt(this.$body.css("padding-right") || 0, 10);
		this.originalBodyPad = document.body.style.paddingRight || "", this.bodyIsOverflowing && this.$body.css("padding-right", t + this.scrollbarWidth)
	}, i.prototype.resetScrollbar = function ()
	{
		this.$body.css("padding-right", this.originalBodyPad)
	}, i.prototype.measureScrollbar = function ()
	{
		var t = document.createElement("div");
		t.className = "modal-scrollbar-measure", this.$body.append(t);
		var e = t.offsetWidth - t.clientWidth;
		return this.$body[0].removeChild(t), e
	};
	var o = t.fn.modal;
	t.fn.modal = e, t.fn.modal.Constructor = i, t.fn.modal.noConflict = function ()
	{
		return t.fn.modal = o, this
	}, t(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function (i)
	{
		var o = t(this), s = o.attr("href"), n = t(o.attr("data-target") || s && s.replace(/.*(?=#[^\s]+$)/, "")), a = n.data("bs.modal") ? "toggle" : t.extend({remote: !/#/.test(s) && s}, n.data(), o.data());
		o.is("a") && i.preventDefault(), n.one("show.bs.modal", function (t)
		{
			t.isDefaultPrevented() || n.one("hidden.bs.modal", function ()
			{
				o.is(":visible") && o.trigger("focus")
			})
		}), e.call(n, a, this)
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.tooltip"), n = "object" == typeof e && e;
			(s || !/destroy|hide/.test(e)) && (s || o.data("bs.tooltip", s = new i(this, n)), "string" == typeof e && s[e]())
		})
	}

	var i = function (t, e)
	{
		this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", t, e)
	};
	i.VERSION = "3.3.5", i.TRANSITION_DURATION = 150, i.DEFAULTS = {
		animation: !0,
		placement: "top",
		selector: !1,
		template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
		trigger: "hover focus",
		title: "",
		delay: 0,
		html: !1,
		container: !1,
		viewport: {selector: "body", padding: 0}
	}, i.prototype.init = function (e, i, o)
	{
		if (this.enabled = !0, this.type = e, this.$element = t(i), this.options = this.getOptions(o), this.$viewport = this.options.viewport && t(t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = {
					click: !1,
					hover: !1,
					focus: !1
				}, this.$element[0]instanceof document.constructor && !this.options.selector)throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!");
		for (var s = this.options.trigger.split(" "), n = s.length; n--;)
		{
			var a = s[n];
			if ("click" == a)this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this));
			else if ("manual" != a)
			{
				var r = "hover" == a ? "mouseenter" : "focusin", l = "hover" == a ? "mouseleave" : "focusout";
				this.$element.on(r + "." + this.type, this.options.selector, t.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, t.proxy(this.leave, this))
			}
		}
		this.options.selector ? this._options = t.extend({}, this.options, {
			trigger: "manual",
			selector: ""
		}) : this.fixTitle()
	}, i.prototype.getDefaults = function ()
	{
		return i.DEFAULTS
	}, i.prototype.getOptions = function (e)
	{
		return e = t.extend({}, this.getDefaults(), this.$element.data(), e), e.delay && "number" == typeof e.delay && (e.delay = {
			show: e.delay,
			hide: e.delay
		}), e
	}, i.prototype.getDelegateOptions = function ()
	{
		var e = {}, i = this.getDefaults();
		return this._options && t.each(this._options, function (t, o)
		{
			i[t] != o && (e[t] = o)
		}), e
	}, i.prototype.enter = function (e)
	{
		var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
		return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusin" == e.type ? "focus" : "hover"] = !0), i.tip().hasClass("in") || "in" == i.hoverState ? void(i.hoverState = "in") : (clearTimeout(i.timeout), i.hoverState = "in", i.options.delay && i.options.delay.show ? void(i.timeout = setTimeout(function ()
		{
			"in" == i.hoverState && i.show()
		}, i.options.delay.show)) : i.show())
	}, i.prototype.isInStateTrue = function ()
	{
		for (var t in this.inState)if (this.inState[t])return !0;
		return !1
	}, i.prototype.leave = function (e)
	{
		var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
		return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusout" == e.type ? "focus" : "hover"] = !1), i.isInStateTrue() ? void 0 : (clearTimeout(i.timeout), i.hoverState = "out", i.options.delay && i.options.delay.hide ? void(i.timeout = setTimeout(function ()
		{
			"out" == i.hoverState && i.hide()
		}, i.options.delay.hide)) : i.hide())
	}, i.prototype.show = function ()
	{
		var e = t.Event("show.bs." + this.type);
		if (this.hasContent() && this.enabled)
		{
			this.$element.trigger(e);
			var o = t.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);
			if (e.isDefaultPrevented() || !o)return;
			var s = this, n = this.tip(), a = this.getUID(this.type);
			this.setContent(), n.attr("id", a), this.$element.attr("aria-describedby", a), this.options.animation && n.addClass("fade");
			var r = "function" == typeof this.options.placement ? this.options.placement.call(this, n[0], this.$element[0]) : this.options.placement, l = /\s?auto?\s?/i, h = l.test(r);
			h && (r = r.replace(l, "") || "top"), n.detach().css({
				top: 0,
				left: 0,
				display: "block"
			}).addClass(r).data("bs." + this.type, this), this.options.container ? n.appendTo(this.options.container) : n.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type);
			var d = this.getPosition(), c = n[0].offsetWidth, p = n[0].offsetHeight;
			if (h)
			{
				var f = r, u = this.getPosition(this.$viewport);
				r = "bottom" == r && d.bottom + p > u.bottom ? "top" : "top" == r && d.top - p < u.top ? "bottom" : "right" == r && d.right + c > u.width ? "left" : "left" == r && d.left - c < u.left ? "right" : r, n.removeClass(f).addClass(r)
			}
			var g = this.getCalculatedOffset(r, d, c, p);
			this.applyPlacement(g, r);
			var m = function ()
			{
				var t = s.hoverState;
				s.$element.trigger("shown.bs." + s.type), s.hoverState = null, "out" == t && s.leave(s)
			};
			t.support.transition && this.$tip.hasClass("fade") ? n.one("bsTransitionEnd", m).emulateTransitionEnd(i.TRANSITION_DURATION) : m()
		}
	}, i.prototype.applyPlacement = function (e, i)
	{
		var o = this.tip(), s = o[0].offsetWidth, n = o[0].offsetHeight, a = parseInt(o.css("margin-top"), 10), r = parseInt(o.css("margin-left"), 10);
		isNaN(a) && (a = 0), isNaN(r) && (r = 0), e.top += a, e.left += r, t.offset.setOffset(o[0], t.extend({
			using: function (t)
			{
				o.css({top: Math.round(t.top), left: Math.round(t.left)})
			}
		}, e), 0), o.addClass("in");
		var l = o[0].offsetWidth, h = o[0].offsetHeight;
		"top" == i && h != n && (e.top = e.top + n - h);
		var d = this.getViewportAdjustedDelta(i, e, l, h);
		d.left ? e.left += d.left : e.top += d.top;
		var c = /top|bottom/.test(i), p = c ? 2 * d.left - s + l : 2 * d.top - n + h, f = c ? "offsetWidth" : "offsetHeight";
		o.offset(e), this.replaceArrow(p, o[0][f], c)
	}, i.prototype.replaceArrow = function (t, e, i)
	{
		this.arrow().css(i ? "left" : "top", 50 * (1 - t / e) + "%").css(i ? "top" : "left", "")
	}, i.prototype.setContent = function ()
	{
		var t = this.tip(), e = this.getTitle();
		t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right")
	}, i.prototype.hide = function (e)
	{
		function o()
		{
			"in" != s.hoverState && n.detach(), s.$element.removeAttr("aria-describedby").trigger("hidden.bs." + s.type), e && e()
		}

		var s = this, n = t(this.$tip), a = t.Event("hide.bs." + this.type);
		return this.$element.trigger(a), a.isDefaultPrevented() ? void 0 : (n.removeClass("in"), t.support.transition && n.hasClass("fade") ? n.one("bsTransitionEnd", o).emulateTransitionEnd(i.TRANSITION_DURATION) : o(), this.hoverState = null, this)
	}, i.prototype.fixTitle = function ()
	{
		var t = this.$element;
		(t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", "")
	}, i.prototype.hasContent = function ()
	{
		return this.getTitle()
	}, i.prototype.getPosition = function (e)
	{
		e = e || this.$element;
		var i = e[0], o = "BODY" == i.tagName, s = i.getBoundingClientRect();
		null == s.width && (s = t.extend({}, s, {width: s.right - s.left, height: s.bottom - s.top}));
		var n = o ? {
			top: 0,
			left: 0
		} : e.offset(), a = {scroll: o ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop()}, r = o ? {
			width: t(window).width(),
			height: t(window).height()
		} : null;
		return t.extend({}, s, a, r, n)
	}, i.prototype.getCalculatedOffset = function (t, e, i, o)
	{
		return "bottom" == t ? {
			top: e.top + e.height,
			left: e.left + e.width / 2 - i / 2
		} : "top" == t ? {
			top: e.top - o,
			left: e.left + e.width / 2 - i / 2
		} : "left" == t ? {top: e.top + e.height / 2 - o / 2, left: e.left - i} : {
			top: e.top + e.height / 2 - o / 2,
			left: e.left + e.width
		}
	}, i.prototype.getViewportAdjustedDelta = function (t, e, i, o)
	{
		var s = {top: 0, left: 0};
		if (!this.$viewport)return s;
		var n = this.options.viewport && this.options.viewport.padding || 0, a = this.getPosition(this.$viewport);
		if (/right|left/.test(t))
		{
			var r = e.top - n - a.scroll, l = e.top + n - a.scroll + o;
			r < a.top ? s.top = a.top - r : l > a.top + a.height && (s.top = a.top + a.height - l)
		}
		else
		{
			var h = e.left - n, d = e.left + n + i;
			h < a.left ? s.left = a.left - h : d > a.right && (s.left = a.left + a.width - d)
		}
		return s
	}, i.prototype.getTitle = function ()
	{
		var t, e = this.$element, i = this.options;
		return t = e.attr("data-original-title") || ("function" == typeof i.title ? i.title.call(e[0]) : i.title)
	}, i.prototype.getUID = function (t)
	{
		do t += ~~(1e6 * Math.random()); while (document.getElementById(t));
		return t
	}, i.prototype.tip = function ()
	{
		if (!this.$tip && (this.$tip = t(this.options.template), 1 != this.$tip.length))throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!");
		return this.$tip
	}, i.prototype.arrow = function ()
	{
		return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
	}, i.prototype.enable = function ()
	{
		this.enabled = !0
	}, i.prototype.disable = function ()
	{
		this.enabled = !1
	}, i.prototype.toggleEnabled = function ()
	{
		this.enabled = !this.enabled
	}, i.prototype.toggle = function (e)
	{
		var i = this;
		e && (i = t(e.currentTarget).data("bs." + this.type), i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i))), e ? (i.inState.click = !i.inState.click, i.isInStateTrue() ? i.enter(i) : i.leave(i)) : i.tip().hasClass("in") ? i.leave(i) : i.enter(i)
	}, i.prototype.destroy = function ()
	{
		var t = this;
		clearTimeout(this.timeout), this.hide(function ()
		{
			t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), t.$tip = null, t.$arrow = null, t.$viewport = null
		})
	};
	var o = t.fn.tooltip;
	t.fn.tooltip = e, t.fn.tooltip.Constructor = i, t.fn.tooltip.noConflict = function ()
	{
		return t.fn.tooltip = o, this
	}
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.popover"), n = "object" == typeof e && e;
			(s || !/destroy|hide/.test(e)) && (s || o.data("bs.popover", s = new i(this, n)), "string" == typeof e && s[e]())
		})
	}

	var i = function (t, e)
	{
		this.init("popover", t, e)
	};
	if (!t.fn.tooltip)throw new Error("Popover requires tooltip.js");
	i.VERSION = "3.3.5", i.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, {
		placement: "right",
		trigger: "click",
		content: "",
		template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
	}), i.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype), i.prototype.constructor = i, i.prototype.getDefaults = function ()
	{
		return i.DEFAULTS
	}, i.prototype.setContent = function ()
	{
		var t = this.tip(), e = this.getTitle(), i = this.getContent();
		t.find(".popover-title")[this.options.html ? "html" : "text"](e), t.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof i ? "html" : "append" : "text"](i), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide()
	}, i.prototype.hasContent = function ()
	{
		return this.getTitle() || this.getContent()
	}, i.prototype.getContent = function ()
	{
		var t = this.$element, e = this.options;
		return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content)
	}, i.prototype.arrow = function ()
	{
		return this.$arrow = this.$arrow || this.tip().find(".arrow");

	};
	var o = t.fn.popover;
	t.fn.popover = e, t.fn.popover.Constructor = i, t.fn.popover.noConflict = function ()
	{
		return t.fn.popover = o, this
	}
}(jQuery), +function (t)
{
	"use strict";
	function e(i, o)
	{
		this.$body = t(document.body), this.$scrollElement = t(t(i).is(document.body) ? window : i), this.options = t.extend({}, e.DEFAULTS, o), this.selector = this.options.selector || (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", t.proxy(this.process, this)), this.refresh(), this.process()
	}

	function i(i)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.scrollspy"), n = "object" == typeof i && i;
			s || o.data("bs.scrollspy", s = new e(this, n)), "string" == typeof i && s[i]()
		})
	}

	e.VERSION = "3.3.5", e.DEFAULTS = {offset: 10}, e.prototype.getScrollHeight = function ()
	{
		return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
	}, e.prototype.refresh = function ()
	{
		var e = this, i = "offset", o = 0;
		this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), t.isWindow(this.$scrollElement[0]) || (i = "position", o = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function ()
		{
			var e = t(this), s = e.data("target") || e.attr("href"), n = /^#./.test(s) && t(s);
			return n && n.length && n.is(":visible") && [[n[i]().top + o, s]] || null
		}).sort(function (t, e)
		{
			return t[0] - e[0]
		}).each(function ()
		{
			e.offsets.push(this[0]), e.targets.push(this[1])
		})
	}, e.prototype.process = function ()
	{
		var t, e = this.$scrollElement.scrollTop() + this.options.offset, i = this.getScrollHeight(), o = this.options.offset + i - this.$scrollElement.height(), s = this.offsets, n = this.targets, a = this.activeTarget;
		if (this.scrollHeight != i && this.refresh(), e >= o)return a != (t = n[n.length - 1]) && this.activate(t);
		if (a && e < s[0])return this.activeTarget = null, this.clear();
		for (t = s.length; t--;)a != n[t] && e >= s[t] && (void 0 === s[t + 1] || e < s[t + 1]) && this.activate(n[t])
	}, e.prototype.activate = function (e)
	{
		this.activeTarget = e, this.clear();
		var i = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]', o = t(i).parents("li").addClass("active");
		o.parent(".dropdown-menu").length && (o = o.closest("li.dropdown").addClass("active")), o.trigger("activate.bs.scrollspy")
	}, e.prototype.clear = function ()
	{
		t(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")
	};
	var o = t.fn.scrollspy;
	t.fn.scrollspy = i, t.fn.scrollspy.Constructor = e, t.fn.scrollspy.noConflict = function ()
	{
		return t.fn.scrollspy = o, this
	}, t(window).on("load.bs.scrollspy.data-api", function ()
	{
		t('[data-spy="scroll"]').each(function ()
		{
			var e = t(this);
			i.call(e, e.data())
		})
	})
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.tab");
			s || o.data("bs.tab", s = new i(this)), "string" == typeof e && s[e]()
		})
	}

	var i = function (e)
	{
		this.element = t(e)
	};
	i.VERSION = "3.3.5", i.TRANSITION_DURATION = 150, i.prototype.show = function ()
	{
		var e = this.element, i = e.closest("ul:not(.dropdown-menu)"), o = e.data("target");
		if (o || (o = e.attr("href"), o = o && o.replace(/.*(?=#[^\s]*$)/, "")), !e.parent("li").hasClass("active"))
		{
			var s = i.find(".active:last a"), n = t.Event("hide.bs.tab", {relatedTarget: e[0]}), a = t.Event("show.bs.tab", {relatedTarget: s[0]});
			if (s.trigger(n), e.trigger(a), !a.isDefaultPrevented() && !n.isDefaultPrevented())
			{
				var r = t(o);
				this.activate(e.closest("li"), i), this.activate(r, r.parent(), function ()
				{
					s.trigger({type: "hidden.bs.tab", relatedTarget: e[0]}), e.trigger({
						type: "shown.bs.tab",
						relatedTarget: s[0]
					})
				})
			}
		}
	}, i.prototype.activate = function (e, o, s)
	{
		function n()
		{
			a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), r ? (e[0].offsetWidth, e.addClass("in")) : e.removeClass("fade"), e.parent(".dropdown-menu").length && e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), s && s()
		}

		var a = o.find("> .active"), r = s && t.support.transition && (a.length && a.hasClass("fade") || !!o.find("> .fade").length);
		a.length && r ? a.one("bsTransitionEnd", n).emulateTransitionEnd(i.TRANSITION_DURATION) : n(), a.removeClass("in")
	};
	var o = t.fn.tab;
	t.fn.tab = e, t.fn.tab.Constructor = i, t.fn.tab.noConflict = function ()
	{
		return t.fn.tab = o, this
	};
	var s = function (i)
	{
		i.preventDefault(), e.call(t(this), "show")
	};
	t(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', s).on("click.bs.tab.data-api", '[data-toggle="pill"]', s)
}(jQuery), +function (t)
{
	"use strict";
	function e(e)
	{
		return this.each(function ()
		{
			var o = t(this), s = o.data("bs.image-grid"), n = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e);
			s || o.data("bs.image-grid", s = new i(this, n)), "string" == typeof e && s[e].call(o)
		})
	}

	var i = function (e, o)
	{
		this.cleanWhitespace(e), this.row = 0, this.rownum = 1, this.elements = [], this.element = e, this.albumWidth = t(e).width(), this.images = t(e).children(), this.options = t.extend({}, i.DEFAULTS, o), t(window).on("resize", t.proxy(this.handleResize, this)), this.processImages()
	};
	i.VERSION = "3.3.1", i.TRANSITION_DURATION = 350, i.DEFAULTS = {
		padding: 10,
		targetHeight: 300,
		display: "inline-block"
	}, i.prototype.handleResize = function ()
	{
		this.row = 0, this.rownum = 1, this.elements = [], this.albumWidth = t(this.element).width(), this.images = t(this.element).children(), this.processImages()
	}, i.prototype.processImages = function ()
	{
		var e = this;
		this.images.each(function (i)
		{
			var o = t(this), s = o.is("img") ? o : o.find("img"), n = "undefined" != typeof s.data("width") ? s.data("width") : s.width(), a = "undefined" != typeof s.data("height") ? s.data("height") : s.height();
			s.data("width", n), s.data("height", a);
			var r = Math.ceil(n / a * e.options.targetHeight), l = Math.ceil(e.options.targetHeight);
			e.elements.push([this, r, l]), e.row += r + e.options.padding, e.row > e.albumWidth && e.elements.length && (e.resizeRow(e.row - e.options.padding), e.row = 0, e.elements = [], e.rownum += 1), e.images.length - 1 == i && e.elements.length && (e.resizeRow(e.row), e.row = 0, e.elements = [], e.rownum += 1)
		})
	}, i.prototype.resizeRow = function (e)
	{
		for (var i = this.options.padding * (this.elements.length - 1), o = this.albumWidth - i, s = o / (e - i), n = i, a = (e < this.albumWidth, 0); a < this.elements.length; a++)
		{
			var r = t(this.elements[a][0]), l = Math.floor(this.elements[a][1] * s), h = Math.floor(this.elements[a][2] * s), d = a < this.elements.length - 1;
			n += l, !d && n < this.albumWidth && (l += this.albumWidth - n), l--;
			var c = r.is("img") ? r : r.find("img");
			c.width(l), c.height(h), this.applyModifications(r, d)
		}
	}, i.prototype.applyModifications = function (t, e)
	{
		var i = {
			"margin-bottom": this.options.padding + "px",
			"margin-right": e ? this.options.padding + "px" : 0,
			display: this.options.display,
			"vertical-align": "bottom"
		};
		t.css(i)
	}, i.prototype.cleanWhitespace = function (e)
	{
		t(e).contents().filter(function ()
		{
			return 3 == this.nodeType && !/\S/.test(this.nodeValue)
		}).remove()
	};
	var o = t.fn.imageGrid;
	t.fn.imageGrid = e, t.fn.imageGrid.Constructor = i, t.fn.imageGrid.noConflict = function ()
	{
		return t.fn.imageGrid = o, this
	}, t(function ()
	{
		t('[data-grid="images"]').imageGrid()
	})
}(jQuery), +function (t)
{
	"use strict";
	function e()
	{
		this._activeZoom = this._initialScrollPosition = this._initialTouchPosition = this._touchMoveListener = null, this._$document = t(document), this._$window = t(window), this._$body = t(document.body), this._boundClick = t.proxy(this._clickHandler, this)
	}

	function i(e)
	{
		this._fullHeight = this._fullWidth = this._overlay = this._targetImageWrap = null, this._targetImage = e, this._$body = t(document.body)
	}

	e.prototype.listen = function ()
	{
		this._$body.on("click", '[data-action="zoom"]', t.proxy(this._zoom, this))
	}, e.prototype._zoom = function (e)
	{
		var o = e.target;
		if (o && "IMG" == o.tagName && !this._$body.hasClass("zoom-overlay-open"))return e.metaKey || e.ctrlKey ? window.open(e.target.getAttribute("data-original") || e.target.src, "_blank") : void(o.width >= t(window).width() - i.OFFSET || (this._activeZoomClose(!0), this._activeZoom = new i(o), this._activeZoom.zoomImage(), this._$window.on("scroll.zoom", t.proxy(this._scrollHandler, this)), this._$document.on("keyup.zoom", t.proxy(this._keyHandler, this)), this._$document.on("touchstart.zoom", t.proxy(this._touchStart, this)), document.addEventListener ? document.addEventListener("click", this._boundClick, !0) : document.attachEvent("onclick", this._boundClick, !0), "bubbles"in e ? e.bubbles && e.stopPropagation() : e.cancelBubble = !0))
	}, e.prototype._activeZoomClose = function (t)
	{
		this._activeZoom && (t ? this._activeZoom.dispose() : this._activeZoom.close(), this._$window.off(".zoom"), this._$document.off(".zoom"), document.removeEventListener("click", this._boundClick, !0), this._activeZoom = null)
	}, e.prototype._scrollHandler = function (e)
	{
		null === this._initialScrollPosition && (this._initialScrollPosition = t(window).scrollTop());
		var i = this._initialScrollPosition - t(window).scrollTop();
		Math.abs(i) >= 40 && this._activeZoomClose()
	}, e.prototype._keyHandler = function (t)
	{
		27 == t.keyCode && this._activeZoomClose()
	}, e.prototype._clickHandler = function (t)
	{
		t.preventDefault ? t.preventDefault() : event.returnValue = !1, "bubbles"in t ? t.bubbles && t.stopPropagation() : t.cancelBubble = !0, this._activeZoomClose()
	}, e.prototype._touchStart = function (e)
	{
		this._initialTouchPosition = e.touches[0].pageY, t(e.target).on("touchmove.zoom", t.proxy(this._touchMove, this))
	}, e.prototype._touchMove = function (e)
	{
		Math.abs(e.touches[0].pageY - this._initialTouchPosition) > 10 && (this._activeZoomClose(), t(e.target).off("touchmove.zoom"))
	}, i.OFFSET = 80, i._MAX_WIDTH = 2560, i._MAX_HEIGHT = 4096, i.prototype.zoomImage = function ()
	{
		var e = document.createElement("img");
		e.onload = t.proxy(function ()
		{
			this._fullHeight = Number(e.height), this._fullWidth = Number(e.width), this._zoomOriginal()
		}, this), e.src = this._targetImage.src
	}, i.prototype._zoomOriginal = function ()
	{
		this._targetImageWrap = document.createElement("div"), this._targetImageWrap.className = "zoom-img-wrap", this._targetImage.parentNode.insertBefore(this._targetImageWrap, this._targetImage), this._targetImageWrap.appendChild(this._targetImage), t(this._targetImage).addClass("zoom-img").attr("data-action", "zoom-out"), this._overlay = document.createElement("div"), this._overlay.className = "zoom-overlay", document.body.appendChild(this._overlay), this._calculateZoom(), this._triggerAnimation()
	}, i.prototype._calculateZoom = function ()
	{
		this._targetImage.offsetWidth;
		var e = this._fullWidth, o = this._fullHeight, s = (t(window).scrollTop(), e / this._targetImage.width), n = t(window).height() - i.OFFSET, a = t(window).width() - i.OFFSET, r = e / o, l = a / n;
		this._imgScaleFactor = a > e && n > o ? s : l > r ? n / o * s : a / e * s
	}, i.prototype._triggerAnimation = function ()
	{
		this._targetImage.offsetWidth;
		var e = t(this._targetImage).offset(), i = t(window).scrollTop(), o = i + t(window).height() / 2, s = t(window).width() / 2, n = e.top + this._targetImage.height / 2, a = e.left + this._targetImage.width / 2;
		this._translateY = o - n, this._translateX = s - a;
		var r = "scale(" + this._imgScaleFactor + ")", l = "translate(" + this._translateX + "px, " + this._translateY + "px)";
		t.support.transition && (l += " translateZ(0)"), t(this._targetImage).css({
			"-webkit-transform": r,
			"-ms-transform": r,
			transform: r
		}), t(this._targetImageWrap).css({
			"-webkit-transform": l,
			"-ms-transform": l,
			transform: l
		}), this._$body.addClass("zoom-overlay-open")
	}, i.prototype.close = function ()
	{
		return this._$body.removeClass("zoom-overlay-open").addClass("zoom-overlay-transitioning"), t(this._targetImage).css({
			"-webkit-transform": "",
			"-ms-transform": "",
			transform: ""
		}), t(this._targetImageWrap).css({
			"-webkit-transform": "",
			"-ms-transform": "",
			transform: ""
		}), t.support.transition ? void t(this._targetImage).one(t.support.transition.end, t.proxy(this.dispose, this)).emulateTransitionEnd(300) : this.dispose()
	}, i.prototype.dispose = function ()
	{
		this._targetImageWrap && this._targetImageWrap.parentNode && (t(this._targetImage).removeClass("zoom-img").attr("data-action", "zoom"), this._targetImageWrap.parentNode.replaceChild(this._targetImage, this._targetImageWrap), this._overlay.parentNode.removeChild(this._overlay), this._$body.removeClass("zoom-overlay-transitioning"))
	}, t(function ()
	{
		(new e).listen()
	})
}(jQuery);